Psigblock
Section: Oct. 1, 1991
(2)
Updated: MiNT Programmer's Manual
Index
Return to Main Contents
NAME
Psigblock, Psigsetmask - block or unblock delivery of signals
SYNOPSIS
LONG Psigblock( LONG mask );
LONG Psigsetmask( LONG mask );
DESCRIPTION
Psigblock
adds the set of signals defined by the variable
mask
to the set of signals which are blocked from delivery.
Each bit of
mask
represents a signal; if bit
n
of
mask
is set, then signal number
n
is blocked.
Psigblock
returns the set of blocked signals as it was prior to the new signals being
added to it; the old set can thus be restored with the
Psigsetmask
call.
Psigsetmask
replaces the set of blocked signals with the set in
mask;
the bits of
mask
have the same meaning as they do for
Psigblock,
except that bits that are set to 0 will cause the corresponding signals
to no longer be blocked.
Psigsetmask
returns the old set of blocked signals.
Note that certain signals (e.g. SIGKILL) cannot be blocked, and the kernel
will (silently) clear the corresponding bits in
mask
before changing the blocked signal set.
Blocked signals remain blocked across
Pfork
and
Pvfork
calls. After a
Pexec
call, the child process will always start with an empty set of blocked
signals, regardless of which signals were blocked by the parent.
SEE ALSO
Pkill(2),
Psignal(2),
Psigpending(2)
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
This document was created by
man2html,
using the manual pages.
Time: 11:14:00 GMT, June 22, 2025